package net.arogarth.aws.android.manager;

import java.util.ArrayList;
import java.util.List;

import net.arogarth.aws.android.lib.AmazonRoute53;
import net.arogarth.aws.android.lib.AwsRequestException;
import net.arogarth.aws.android.lib.models.HostetZone;
import android.app.ProgressDialog;

public class Route53Controlle {
	private final List<HostetZone> r53HostetZones = new ArrayList<HostetZone>();
	
	public void listRoute53HostedZone() {
		
		final Thread t = new Thread() {
			public void run() {
				AmazonRoute53 ar53 = new AmazonRoute53();

				try {
					List<HostetZone> _zones= ar53.listHostetZones();

					r53HostetZones.clear();
					for (HostetZone zone : _zones) {
						
						r53HostetZones.add(zone);
					}
					
				} catch (final AwsRequestException e) {
				}
			}
		};
		t.start();
	}
}
